import requests
from bs4 import BeautifulSoup

url = 'https://sewen.cc/'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.82'
}

sewen_response = requests.get(url=url, headers=headers)
sewen_response.encoding = 'gbk'

soup = BeautifulSoup(sewen_response.text, 'html.parser')

items = soup.find_all('div', class_='item')

for item in items:
    title = item.find('dt').text.strip()
    url = item.find('a')['href']
    intro = item.find('dd').text.strip()
    print(f"标题: {title}")
    print(f"URL 地址: {url}")
    print(f"简介: {intro}")
    print()
